import { RouteRecordRaw } from 'vue-router';
import {
  LayoutView,
  RouteNameEnum,
  RouteUrlEnum,
  WindAccount,
  WindUser
} from '@/config/router_config/router_components';

export const asyncRoutes: Array<RouteRecordRaw> = [
  {
    path: RouteUrlEnum.userBase,
    component: LayoutView,
    meta: {
      title: '用户',
      hidden: false
    },
    children: [
      {
        path: RouteUrlEnum.windAccount,
        component: WindAccount,
        name: RouteNameEnum.windAccount,
        meta: {
          title: '账号列表',
          hidden: false
        }
      },
      {
        path: RouteUrlEnum.windUser,
        component: WindUser,
        name: RouteNameEnum.windUser,
        meta: {
          title: '用户列表',
          hidden: false
        }
      }
    ]
  }
];
